package action;

import java.io.UnsupportedEncodingException;

public abstract class Convert {

	public static String asUTF8(String source) throws UnsupportedEncodingException
	{
		return new String(source.getBytes("ISO-8859-1"), "UTF-8");
	}
	
	public static String asUTF8(String source, String inputEncoding) throws UnsupportedEncodingException
	{
		return new String(source.getBytes(inputEncoding), "UTF-8");
	}
}
